//
//  CaliCam.cpp
//  cali
//
//  Created by Fan Qu on 12/8/18.
//  Copyright © 2018 GF. All rights reserved.
//

#include "CaliCam.hpp"
#include "constants.h"
using namespace cv;

CaliCam* CaliCam::_instance = NULL;

CaliCam::CaliCam()
{
    FileStorage fs(Constants::camDataPath, FileStorage::READ);
    rvec = fs["rvec"].mat();
    tvec = fs["tvec"].mat();
    intrinsics = fs["camera_matrix"].mat();
    distCoeffs = fs["distortion_coefficients"].mat();
    tr_mat = fs["trans_matrix"].mat();
    
}
